<?php
require_once "file_helper.php";
function site_url($path="") {
    if (empty($path) or !is_string($path)){
        return CONFIG::get('site_url');
    } else {
        return path_join(CONFIG::get('site_url'), $path);
    }
}
